//
//  DestinationModel.swift
//  XMLA
//
//  Created by Gao on 17/2/27.
//  Copyright © 2017年 Odm. All rights reserved.
//

import UIKit

class DestinationModel: BaseModel {
    var tracks: DTracks!
    var album: DAlbum!
    var msg: String = ""
    var ret: Int = 0
}

class DAlbum: BaseModel {
    var status: Int = 0
    var title: String = ""
    var tags: String = ""
    var serialState: Int = 0
    var categoryName: String = ""
    var coverWebLarge: String = ""
    var coverMiddle: String = ""
    var nickname: String = ""
    var shares: Int = 0
    var intro: String = ""
    var isHasNew: Bool = false
    var createdAt: Int64 = 0
    var isVerified: Bool = false
    var avatarPath: String = ""
    var albumId: Int = 0
    var updatedAt: Int64 = 0
    var coverSmall: String = ""
    var coverLarge: String = ""
    var coverOrigin: String = ""
    var uid: Int = 0
    var introRich: String = ""
    var zoneId: Int = 0
    var tracks: Int = 0
    var isFavorite: Bool = false
    var serializeStatus: Int = 0
    var categoryId: Int = 0
    var playTimes: Int = 0
}
class DTracks: BaseModel {
    var maxPageId: Int = 0
    var list = [DTracks_List]()
    var pageId: Int = 0
    var pageSize: Int = 0
    var totalCount: Int = 0
    
    class func objectClassInArray() -> [AnyHashable: Any] {
        return ["list": DTracks_List.self]
    }
}

class DTracks_List: BaseModel {
    var status: Int = 0
    var title: String = ""
    var userSource: Int = 0
    var processState: Int = 0
    var duration: CGFloat = 0.0
    var nickname: String = ""
    var likes: Int = 0
    var coverMiddle: String = ""
    var shares: Int = 0
    var playPathAacv224: String = ""
    var createdAt: Int64 = 0
    var smallLogo: String = ""
    var albumTitle: String = ""
    var albumImage: String = ""
    var albumId: Int = 0
    var downloadAacUrl: String = ""
    var playUrl64: String = ""
    var orderNum: Int = 0
    var playPathAacv164: String = ""
    var playUrl32: String = ""
    var uid: Int = 0
    var coverSmall: String = ""
    var coverLarge: String = ""
    var playtimes: Int = 0
    var downloadSize: Int = 0
    var downloadAacSize: Int = 0
    var downloadUrl: String = ""
    var comments: Int = 0
    var trackId: Int = 0
    var opType: Int = 0
    var isPublic: Bool = false
}
